package udp;

public class Main {

    public static void main(String[] args) {


        byte a1 = 127;
        byte a2 = 1;
        byte a3 = (byte) (a1 + a2);

        System.out.println(Integer.toBinaryString(a3));

        System.out.println(a3);

        System.out.println(Integer.toBinaryString(-8));

        int a = -987654321;
        System.out.println(Integer.toBinaryString(a));
//        System.out.println(~a);
//        System.out.println(Integer.toBinaryString(~a));


        System.out.println(Integer.toBinaryString(a & 0xFFFF));
        System.out.println(Integer.toBinaryString(a & 0xFFFF << 16));
    }
}
